<?php
/**
 * 公告管理model
 * @author lxn
 */
class Notice_model extends MY_Model
{
	private $table = 'notice';
	public function __construct()
	{
		parent::__construct($this->table);
	}
	
	/**
	 * 获取通知列表
	 */
	public function getList($where = array(), $limit = 10, $offset = 0)
	{
	    $select = 'noticeId,noticeContent,readStatus';	    
	    $this->db->select($select);
	    $this->db->where($where);
	    $this->db->order_by('readStatus','asc')->order_by('createTime', 'desc')->limit($limit, $offset);
	    return $this->db->get($this->table)->result_array();
	}
	
	
}
/* End of file Linkadmin_model.php */